{extend name="public/base"/}
{block name="style"}

{/block}
{block name="body"}
<style>
    .menuBox li {
        float: left;
        width: 55px;
        height: 35px;
        line-height: 35px;
        text-align: center;
        font-size: 16px;
        -moz-border-radius: 8px;
        border-radius: 8px;
    }
</style>
{include file="public/header" /}

<div class="pageBox userBox" >
    <div class="userLeft">
        <div class="headPic">
            {if $avatar ==""}
            <img id="userPicShow" src="__PUBLIC__/novel/images/ser.png"/>
            {else}
            <img id="userPicShow" src="{$avatar}"/>
            {/if}
            <span>{$nickname}</span>
        </div>
        <ul>
            <li class="liHove"><a href="/personal/info">我的主页</a></li>
            <li ><a href="/personal/bookcase">我的书架</a></li>
            <li ><a href="/personal/review">我的书评</a></li>
            <li ><a href="/personal/paylog/">充值记录</a></li>
			<li ><a href="/personal/history/">阅读历史</a></li>
            <li ><a href="/personal/moneylog/">订阅记录</a></li>
            <li ><a href="/personal/bonuslog/">打赏记录</a></li>
			<li ><a href="{:config('writer_url')}">作家中心</a></li>
        </ul>    
    </div>
    <div class="userRight">
        <div class="Tit userIco">个人信息<span><a href="{:url('user/edit')}">编辑资料</a></span></div>
        <div class="userInfoBox">
            <ul>
                <li><span>用户ID：{$uid}</span></li>
                <li><span>用户昵称：{$nickname}</span></li>
                <li><span>{:config('virtualname')}：<font size="" color="#ff3300">{$egold}</font>枚  书币：<font size="" color="#ff3300">{$zb}</font>枚  VIP会员：{if $is_vip>0}{if $vip_enddate>=time()}还剩<font size="" color="#ff3300">{php} echo round(($vip_enddate-time())/86400);{/php}</font>天过期{else/}已过期{/if}{else/}未开通{/if}</span><a href="/pay/index">充值</a></li>
            </ul>
        </div>
        <div class="Tit caseIco">我的书架<span><a href="/personal/bookcase">全部藏书</a></span></div>
        <div class="userCaseBox">
            <ul class="clearfix">
                {volist name="bookcase" id="vo"}
                <li><a target="_blank" href="{:url('/book/info',array("id"=>$vo.articleid))}"><img src="{$Think.config.web_site_url}{$vo.articleid|get_novel=###,'cover'}"></a><span>{$vo.articlename}</span><span><a target="_blank" href="{$Think.config.web_pc_url}/chapter/read/{$vo.articleid}/{$vo.chapterid}.html">继续阅读</a></span></li>
                {/volist}
            </ul>
        </div>
        <div class="Tit disIco">
            我的书评<span><a href="/personal/review">全部书评</a></span>
        </div>
        <div class="userDisBox">
            <div class="disTit">
                <a href="/personal/review">我的评论</a> | <a href="/personal/replies">我的回复</a> 
            </div>
            <ul>
				 {volist name="review" id="vo"}
				<li><font><a target="_blank" href="{:url('index/books/index',array("id"=>$vo.articleid))}">《{$vo.articlename}》</a></font>
					我
					说：{$vo.content}</li>
				{/volist}
			</ul>

        </div>
    </div>
</div>
{block name="include"}{include file="public:footer" /}{/block}

{/block}
{block name="script"}
    <script type="text/javascript">

	</script>
{/block}